package com.qingcheng.pojo.system;


import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.ArrayList;

@Table(name="tb_admin_role")
@NoArgsConstructor  //空参构造
@Data
public class UserRole implements Serializable {

    @Id
    private Integer adminId;
    @Id
    private Integer roleId;

    public UserRole(ArrayList<AdminAndRole> arrayList) {
    }

    public UserRole(Integer adminId, Integer roleId) {
        this.adminId = adminId;
        this.roleId = roleId;
    }


}
